package com.company.genealogy.web.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.util.Date;

@Data
@TableName("tb_branch")
@JsonIgnoreProperties(ignoreUnknown = true)
public class Branch {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long clanId;
    private String name;
    private Long leaderId;
    private String description;
    private String migrationRoute;
    private String mapMarker;
    private String permission;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedAt;
} 